package com.tsd.jxc.order.service;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.order.entity.JxcOrderAmountDetail;
import com.tsd.jxc.order.entity.JxcOrderAmountDetailExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcOrderAmountDetail服务实现层接口
 *
 * @author Hillpool
 * @date 2022/11/04 18:01:29
 */
public interface JxcOrderAmountDetailService {

    /**
     * 描述：根据id获取JxcOrderAmountDetail
     *
     * @param id
     */
    JxcOrderAmountDetail getJxcOrderAmountDetailById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcOrderAmountDetail
     *
     * @param sid
     */
    JxcOrderAmountDetailExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除JxcOrderAmountDetail
     *
     * @param list
     */
    void deleteJxcOrderAmountDetails(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：根据order_sid列表删除JxcOrderAmountDetail
     *
     * @param list
     */
    void deleteJxcOrderAmountDetailsByOrderSid(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：根据order_sid列表取消JxcOrderAmountDetail
     *
     * @param list
     */
    void cancelJxcOrderAmountDetailsByOrderSid(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcOrderAmountDetail
     *
     * @param record
     * @param opUser
     */
    void saveJxcOrderAmountDetail(JxcOrderAmountDetailExt record, SysUser opUser) throws Exception;

    void saveJxcOrderAmountDetail4Batch(JxcOrderAmountDetailExt detailExt, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcOrderAmountDetail
     *
     * @param params
     * @param page
     */
    List<JxcOrderAmountDetailExt> findJxcOrderAmountDetails(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcOrderAmountDetail
     *
     * @param params
     */
    List<JxcOrderAmountDetailExt> findJxcOrderAmountDetails(Map<String, Object> params) throws Exception;
}